import React,{useEffect} from 'react';
import eventBus from '../../utils/eventBus';
import {useHistory} from 'react-router-dom'

function Quotation(){
    useEffect(() => {
        eventBus.$on('open',(params:any) => {
            console.log(params)
        })
    },[])

    const history = useHistory();
    return <div>
        <button onClick={() => {history.push('/car')}}>car</button>
    </div>
}

export default Quotation